<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:t="http://myfaces.apache.org/tomahawk">

<body>

<ui:composition >
	<div class="form">
		<h:panelGroup layout="block">
			<t:subform id="tab_absence" >
				<h:messages id="messages" warnClass="msgWarn" errorClass="msgError" infoClass="msgInfo"
						globalOnly="true" />
				<div class="borderBleu">
					<h:panelGroup rendered="#{fn:length(GestionInscriptionControleur.modele.absences) > 0}">
							<div class="titre">
								<h:outputLabel value="La liste des absences" />
							</div>
					</h:panelGroup>
					<div id="formResult">
						<rich:dataTable id="absence" value="#{GestionInscriptionControleur.modele.absences}" 	var="absence" 
		        			rendered="#{fn:length(GestionInscriptionControleur.modele.absences) > 0}" rows="10">
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Matricule" />
				        		</f:facet>
				        		<h:outputText value="#{absence.matricule}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Prénom" />
				        		</f:facet>
				        		<h:outputText value="#{absence.prenom}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Nom" />
				        		</f:facet>
				        		<h:outputText value="#{absence.nom}" />
				        	</rich:column>
				        	
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Date de déclaration" />
				        		</f:facet>
				        		<h:outputText value="#{absence.datedeclaration}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Date début" />
				        		</f:facet>
				        		<h:outputText value="#{absence.datedebutabsence}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Date fin" />
				        		</f:facet>
				        		<h:outputText value="#{absence.datefinabsence}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Déclarée par" />
				        		</f:facet>
				        		<h:outputText value="#{absence.declarepar}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Lien de parenté" />
				        		</f:facet>
				        		<h:outputText value="#{absence.lienparente}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Téléphone" />
				        		</f:facet>
				        		<h:outputText value="#{absence.tel}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="Motif" />
				        		</f:facet>
				        		<h:outputText value="#{absence.motifabsence}" />
				        	</rich:column>
				        	<rich:column >
				        		<f:facet name="header">
				        			<h:outputText 	value="" />
				        		</f:facet>
				        		<h:commandLink value=" Modifier "  action="#{GestionInscriptionControleur.afficherEcrCreationEleve}">
				        			<f:setPropertyActionListener target="#{GestionInscriptionControleur.modele.eleve}" value="#{eleve}"/>
				        			<f:setPropertyActionListener target="#{GestionInscriptionControleur.modele.modificationFlag}" value="true" />
				        		</h:commandLink>
				        		
				        	</rich:column>
	       		 		</rich:dataTable>
					</div>
					<div>
						<h:commandLink styleClass="btValider" value="Déclarer absence" action="ECR_SAISIE_ABSENCE">
        					<f:setPropertyActionListener target="#{GestionInscriptionControleur.modele.absence.matricule}" 
        							value="#{GestionInscriptionControleur.modele.eleve.matricule}"/>
        				</h:commandLink>
        			</div>
				</div>
			</t:subform>
		</h:panelGroup>
	</div>

</ui:composition>
</body>
</html>